﻿<%@ Page Title="" Language="C#" MasterPageFile="~/Main.Master" AutoEventWireup="true" CodeBehind="Tracking.aspx.cs" Inherits="Phoenix.Tracking" Culture="auto"  UICulture="Auto"%>
<%@ OutputCache Duration="600" VaryByParam="None" Location="Client" %>
<asp:Content ID="Content1" ContentPlaceHolderID="head" runat="server">
</asp:Content>
<asp:Content ID="Content2" ContentPlaceHolderID="main" runat="server">
<h2><asp:Label ID="lb_title" runat="server" Text=""></asp:Label></h2>
    <table class="tracking">
        <thead>
            <tr class="title">
                <th class="col1"><asp:Label ID="lb_event" runat="server" Text=""></asp:Label></th>
                <th class="col2"><asp:Label ID="lb_date" runat="server" Text=""></asp:Label></th>
                <th class="col3"><asp:Label ID="lb_status" runat="server" Text=""></asp:Label></th>
            </tr>
        </thead>
        <tbody>
                <asp:Literal ID="lb_content" runat="server"></asp:Literal>
        </tbody>
    </table>
    <p><span class="track_t">Track your Shipment:</span> <asp:TextBox ID="txt_track" runat="server" CssClass="text_track"></asp:TextBox><asp:Button
        ID="bt_submit" runat="server" Text="Track" CssClass="trackbt" 
            OnClientClick="return validate_Track()" onclick="bt_submit_Click"/></p>
    <asp:Label ID="lb_error" runat="server" Text="" ForeColor="#D80000"></asp:Label>
    <script type="text/javascript">
        function validate_Track() {

            var track = document.getElementById("<%= txt_track.ClientID %>").value;
            if (track == null || track == "") {
                alert("Please enter item code");
                document.getElementById("<%= txt_track.ClientID %>").focus();
                return false;
            }
            return true;
        }

    </script>
</asp:Content>
